package com.shopping.dao;

import java.util.List;

import com.shopping.entity.Book;
import com.shopping.entity.Favorite;
import com.shopping.entity.User;

public interface ClientDao {

	User login(String username, String password);

	boolean register(User user);

    List<Book> xmlbc();

    List<Book> jsbc();

    List<Book> dbDesign();

    List<Book> jsjwl();

    List<Book> kxjs();

    List<Book> javabc();

	void personInformation(User user);

	void personPassword(User user);

	List<Book> search(String search);

	Book findBookById(String book_id);

	void addfavorite(String string, String user_id, String book_id);

	List<Favorite> findFavoriteByUserId(User user);

	boolean findFavorite(String user_id, String book_id);

	void delFavorite(String book_id);

	List<Book> findBooktype(String type, int start, int count);

	int getCount(String type);

	List<Book> search(String search,int start,int count);

	int getSearchCount(String search);
}
